/**
 * 
 */
package myou.model;

import java.util.ArrayList;
import java.util.List;

import myou.classes.Usuario;

/**
 * @author Rony
 *
 */
public class RepositorioUsuarios implements Repositorio {
	
	private static RepositorioUsuarios instance = null;
	private List<Usuario> usuarios;
	
	protected RepositorioUsuarios(){
		usuarios = new ArrayList<Usuario>();
	}
	
	public synchronized static RepositorioUsuarios getInstance() throws Exception{
		try{
			if(instance == null){
				instance = new RepositorioUsuarios();
			}
			return instance;
		}catch(Exception e){
			throw new Exception(e.getMessage());
		}
	}

	/* (non-Javadoc)
	 * @see myou.model.Repositorio#adicionar(java.lang.Object)
	 */
	@Override
	public void adicionar(Object obj) {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see myou.model.Repositorio#apagar(java.lang.Object)
	 */
	@Override
	public void apagar(Object obj) {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see myou.model.Repositorio#atualizar(java.lang.Object)
	 */
	@Override
	public void atualizar(Object obj) {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see myou.model.Repositorio#consultar(java.lang.Object)
	 */
	@Override
	public String consultar(Object obj) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see myou.model.Repositorio#existe(java.lang.Object)
	 */
	@Override
	public boolean existe(Object obj) {
		// TODO Auto-generated method stub
		return false;
	}

}
